The "window" is where GameMaker Studio 2 displays your game, and, depending on the target device, there are different things that can be done with it, like set it to fullscreen or not (for example). Views, however, govern what you see within that window, and so have another series of functions dedicated to them. The following two sections deal with these two aspects of displaying your game:
However, sometimes it's not enough to get information about the game window and views only, and you really need to know things about the display itself. The following function all give you details about the size and orientation of the display, details about the GUI layer, and information on the mouse:
- display_reset
- display_get_height
- display_get_width
- display_get_orientation
- display_get_dpi_x
- display_get_dpi_y
- display_set_gui_size
- display_set_gui_maximise
- display_get_gui_width
- display_get_gui_height
- display_set_ui_visibility
- display_mouse_get_x
- display_mouse_get_y
- display_mouse_set
- display_set_timing_method
- display_get_timing_method
- display_set_sleep_margin
- display_get_sleep_margin
There are also a few special functions that can be used to save the display, or part of it, to an image file, either as *.png or *.gif: